<div class="flownodes view">
<h2><?php  echo __('Flownode');?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($flownode['Flownode']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Application'); ?></dt>
		<dd>
			<?php echo $this->Html->link($flownode['Application']['id'], array('controller' => 'applications', 'action' => 'view', $flownode['Application']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('User'); ?></dt>
		<dd>
			<?php echo $this->Html->link($flownode['User']['username'], array('controller' => 'users', 'action' => 'view', $flownode['User']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Loc Index'); ?></dt>
		<dd>
			<?php echo h($flownode['Flownode']['loc_index']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Loc Identity'); ?></dt>
		<dd>
			<?php echo h($flownode['Flownode']['loc_identity']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Status'); ?></dt>
		<dd>
			<?php echo h($flownode['Flownode']['status']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Approved Time'); ?></dt>
		<dd>
			<?php echo h($flownode['Flownode']['approved_time']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Flownode'), array('action' => 'edit', $flownode['Flownode']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Flownode'), array('action' => 'delete', $flownode['Flownode']['id']), null, __('Are you sure you want to delete # %s?', $flownode['Flownode']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Flownodes'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Flownode'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Applications'), array('controller' => 'applications', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Application'), array('controller' => 'applications', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Users'), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User'), array('controller' => 'users', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Signatures'), array('controller' => 'signatures', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Signature'), array('controller' => 'signatures', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Signatures');?></h3>
	<?php if (!empty($flownode['Signature'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Flownode Id'); ?></th>
		<th><?php echo __('Uniquecode'); ?></th>
		<th><?php echo __('Content'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($flownode['Signature'] as $signature): ?>
		<tr>
			<td><?php echo $signature['id'];?></td>
			<td><?php echo $signature['flownode_id'];?></td>
			<td><?php echo $signature['uniquecode'];?></td>
			<td><?php echo $signature['content'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'signatures', 'action' => 'view', $signature['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'signatures', 'action' => 'edit', $signature['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'signatures', 'action' => 'delete', $signature['id']), null, __('Are you sure you want to delete # %s?', $signature['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Signature'), array('controller' => 'signatures', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
